package com._520it.crm.page;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * Created by 呆 on 2017/10/3.
 */
@Getter@Setter
@ToString
public class AjaxResult {
    private Boolean success=true;
    private String msg;
    //无参数构造器
    public AjaxResult(){

    }
    //两个参数构造器 保存成功
    public AjaxResult(Boolean success, String msg){
        this.success = success;
        this.msg=msg;
    }
    //一个参数构造器 保存失败
    public AjaxResult(String msg){
        this.msg=msg;
    }
}
